package cn.stylefeng.guns.modular.gridsystem.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 光纤传感器信息
 *
 * @author ssy
 * @date 2023/02/03 09:53
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BizFosInfoParam extends BaseParam {

    /**
     * id
     */
    @NotNull(message = "id不能为空",groups = {edit.class})
    private Long id;

    /**
     * 通道ID
     */
    @NotNull(message = "通道ID不能为空",groups = {add.class,edit.class})
    private Integer channelId;

    /**
     * 开始点位
     */
    @NotNull(message = "开始点位不能为空",groups = {add.class,edit.class})
    private String startPoint;

    /**
     * 结束点位
     */
    @NotNull(message = "结束点位不能为空",groups = {add.class,edit.class})
    private String endPoint;

}
